'use strict';
const dbAddress = uniCloud.database().collection('address')
exports.main = async (event, context) => {
	//event为客户端上传的参数
  const { nickname, tel, address } = event
  
	const resp = await dbAddress.add({
    nickname, tel, address
  })
	//返回数据给客户端
	return resp
};
